//index.js
//获取应用实例
const app = getApp()

Page({
  data: {
    books:[
      {id:0,title:"红楼梦",price:39.8},
      {id:1, title: "西游记", price: 42.5 },
      {id:2, title: "水浒传", price: 36.7 },
      {id:3,title: "三国演义", price: 38.8 }
    ]
  }
})
